//
//  LTListenSaidController.m
//  LearnTeacher
//
//  Created by yang bo on 2024/4/15.
//

#import "LTListenSaidController.h"
#import "LTFirstBookCollectionCell.h"
#import "LTFirstGradeCollectionCell.h"

@interface LTListenSaidController ()
@property (weak, nonatomic) IBOutlet UICollectionView *bookCollectionView;
@property (weak, nonatomic) IBOutlet UICollectionViewFlowLayout *bookLayout;
@property (weak, nonatomic) IBOutlet UICollectionViewFlowLayout *gradeLayout;
@property (weak, nonatomic) IBOutlet UICollectionView *gradeCollectionView;
@end

@implementation LTListenSaidController

- (void)viewDidLoad {
    [super viewDidLoad];
    
}

- (void)setup {
    [self.bookCollectionView registerNib:[UINib nibWithNibName:NSStringFromClass([LTFirstBookCollectionCell class]) bundle:nil] forCellWithReuseIdentifier:@"BOOKID"];
    [self.gradeCollectionView registerNib:[UINib nibWithNibName:NSStringFromClass([LTFirstGradeCollectionCell class]) bundle:nil] forCellWithReuseIdentifier:@"GRADEID"];
    self.gradeLayout.scrollDirection = UICollectionViewScrollDirectionHorizontal;
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self.navigationController setNavigationBarHidden:YES animated:YES];
}

- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:animated];
    [self.navigationController setNavigationBarHidden:NO animated:YES];
}


@end
